package com.deer.mvptest.service.manager;

import android.content.Context;

import com.deer.mvptest.service.entity.Book;
import com.deer.mvptest.service.RetrofitHelper;
import com.deer.mvptest.service.RetrofitService;

import rx.Observable;

/**
 * 作者: 张金富 on 2017-09-06.
 * Email: zjf_deer@163.com
 * QQ: 1132740974
 * 描述:
 */

public class DataManager {
    private RetrofitService mRetrofitService;

    public DataManager(Context context) {
        this.mRetrofitService = RetrofitHelper.getInstance(context).getServer();
    }

    public Observable<Book> getSearchBook(String name, String tag, int start, int count) {
        return mRetrofitService.getSearchBook(name, tag, start, count);
    }

}
